<template>
    <div class="not-found">
        <div class="four">404</div>
        <div class="text">抱歉！您所访问的页面不存在，请重新加载！</div>
        <div class="foot">
            <div class="route" @click="refresh">
                <el-icon>
                    <RefreshRight />
                </el-icon>
                <span class="str">刷新网页</span>
            </div>
            <div class="route" @click="backHome">
                <el-icon>
                    <ArrowLeft />
                </el-icon>
                <span class="str">返回首页</span>
            </div>
        </div>
    </div>
</template>
<script setup>
import { RefreshRight, ArrowLeft } from '@element-plus/icons-vue'
import { useRouter } from 'vue-router';
const router = useRouter()
const refresh = () => {
    window.location.reload();
}
const backHome = () => {
    router.push('/')
}
</script>
<style lang="less" scoped>
.not-found {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgb(0, 187, 255);
    .four{
        margin-top: -150px;
        font-size: 120px;
        text-shadow: 5px 5px 10px rgba(0,0,0,.1);
    }
    .text{
        margin-bottom: 20px;
        font-size: 20px;
    }
    .foot{
        display: flex;
        .route{
            display: inline-flex;
            align-items: center;
            cursor: pointer;
            &:first-child{
                margin-right: 30px;
            }
            .str{
                margin-left: 5px;
            }
        }
    }
}
</style>